Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 21, 2025

No description provided.

@SethTisue
Copy link
Member

@prolativ
Copy link
Contributor

Do I get this right that with this SIP both snippets below would be valid syntax

fun: (x: Int) =>
  (y: Int) => x + y
fun: (x: Int) => (y: Int) => x + y

but the following would be invalid?

fun: (x: Int) => (y: Int) =>
  x + y

If so, was this intentional or maybe we should somehow take such curried lambdas into account?

@odersky
Copy link
Contributor Author

odersky commented Sep 25, 2025

@prolativ Good observation! I changed the proposal and the implementation to admit curried parameter lists.

@bracevac bracevac changed the title SIP-XX: Allow single-line lambda after : SIP-75: Allow single-line lambda after : Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants